﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Tickz.Commonz
{
    /// <summary>
    /// 分组比较器
    /// </summary>
    public class GroupComparer : IComparer<ISubject>
    {
        #region IComparer<ISubject> 成员
        /// <summary>
        /// 比较两个ISubject通过GroupName
        /// </summary>
        /// <param name="x">ISubject对象</param>
        /// <param name="y">ISubject对象</param>
        /// <returns></returns>
        public int Compare(ISubject x, ISubject y)
        {
            return x.GroupName.CompareTo(y.GroupName);
        }
        #endregion

    }
}
